<?php
	$tool_buttons = array
	(
		'list_button' => array
		(
			'image'=>'btnListLarge.gif', 
			'text'=>LANG_LIST, 
			'url'=>'/'.$this->name.'/index/'
		),
		'refresh_button' => array
		(
			'image'=>'btnRefresh.gif', 
			'text'=>LANG_REFRESH_ACCESS, 
			'url'=>'javascript:document.forms["refreshsystemaccess"].submit();'
			//'url'=>'/'.$this->name.'/refreshsystemaccess/'.$this->data[$this->name][id]
		),
		'add_button' => array
		(
			'image'=>'btnPermissionsLarge.gif', 
			'text'=>LANG_ACCESS, 
			'url'=>'/system_access/edit/' . $this->data[$this->name][id]
		),
	);
	$this->helpers->html->form('/'.$this->name.'/edit/'.$this->data[$this->name][id]);
	$this->helpers->htmlx->MenuText1(LANG_ROLES.': '.LANG_EDIT, "edit.gif");
	$this->helpers->toolbars->Toolbar($tool_buttons);
	echo "<table class='eva'>";
		 $this->helpers->htmlx->hidden('id', $this->data[$this->name][id]);	
		 $this->helpers->htmlx->inputTextRow(LANG_TITLE, 'name', $this->data[$this->name][name], '');
		 $this->helpers->htmlx->textareaRow(LANG_DESCRIPTION, 'description', $this->data[$this->name][description]);
	echo "</table>";
	$this->helpers->htmlx->submitTable('submit', $this->name);
	echo "</form>";
	echo '<form name="refreshsystemaccess" method="POST" >';
			 $this->helpers->htmlx->hidden('id', $this->data[$this->name][id]);	
			 $this->helpers->htmlx->hidden('refreshsystemaccess', 1);	
	echo "</form>";
?>